package com.mf.entity.request.dataDictionary;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * @Author: lmf
 * @Create: 2024/7/20 14:47
 * Description:
 */
@Data
public class DataDictionaryRequest {
    private Integer id;

    /**
     * 字典值
     */
    @Schema(description = "字典名称", example = "ehr")
    @NotBlank(message = "字典名称不能为空")
    private String dctValue;

    /**
     * 字典名称
     */
    private String dctLabel;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 父级id
     */
    private Integer pid;

    /**
     * 编号
     */
    @Schema(description = "编号", example = "systemCode")
    @NotBlank(message = "编号不能为空")
    private String code;

    /**
     * 可编辑角色(null所有角色可编辑)
     */

    private String editRole;

    /**
     * 所属系统
     */
    @Schema(description = "所属系统", example = "ehr")
    @NotBlank(message = "所属系统不能为空")
    private String systemCode;
}
